{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { getArrowOffset } from '../../style/placementArrow';\nimport { initMoveMotion, initSlideMotion, initZoomMotion, slideDownIn, slideDownOut, slideUpIn, slideUpOut } from '../../style/motion';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genButtonStyle from './button';\nimport genStatusStyle from './status';\nimport { genFocusStyle, resetComponent, roundedArrow } from '../../style';\n// =============================== Base ===============================\nvar genBaseStyle = function genBaseStyle(token) {\n  var _$concat, _Object$assign, _Object$assign4, _ref3;\n  var componentCls = token.componentCls,\n    menuCls = token.menuCls,\n    zIndexPopup = token.zIndexPopup,\n    dropdownArrowDistance = token.dropdownArrowDistance,\n    dropdownArrowOffset = token.dropdownArrowOffset,\n    sizePopupArrow = token.sizePopupArrow,\n    antCls = token.antCls,\n    iconCls = token.iconCls,\n    motionDurationMid = token.motionDurationMid,\n    dropdownPaddingVertical = token.dropdownPaddingVertical,\n    fontSize = token.fontSize,\n    dropdownEdgeChildPadding = token.dropdownEdgeChildPadding,\n    colorTextDisabled = token.colorTextDisabled,\n    fontSizeIcon = token.fontSizeIcon,\n    controlPaddingHorizontal = token.controlPaddingHorizontal,\n    colorBgElevated = token.colorBgElevated,\n    boxShadowPopoverArrow = token.boxShadowPopoverArrow;\n  return [_defineProperty({}, componentCls, Object.assign(Object.assign({}, resetComponent(token)), (_Object$assign = {\n    position: 'absolute',\n    top: -9999,\n    left: {\n      _skip_check_: true,\n      value: -9999\n    },\n    zIndex: zIndexPopup,\n    display: 'block',\n    // A placeholder out of dropdown visible range to avoid close when user moving\n    '&::before': {\n      position: 'absolute',\n      insetBlock: -dropdownArrowDistance + sizePopupArrow / 2,\n      // insetInlineStart: -7, // FIXME: Seems not work for hidden element\n      zIndex: -9999,\n      opacity: 0.0001,\n      content: '\"\"'\n    }\n  }, _defineProperty(_Object$assign, \"\".concat(componentCls, \"-wrap\"), (_$concat = {\n    position: 'relative'\n  }, _defineProperty(_$concat, \"\".concat(antCls, \"-btn > \").concat(iconCls, \"-down\"), {\n    fontSize: fontSizeIcon\n  }), _defineProperty(_$concat, \"\".concat(iconCls, \"-down::before\"), {\n    transition: \"transform \".concat(motionDurationMid)\n  }), _$concat)), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-wrap-open\"), _defineProperty({}, \"\".concat(iconCls, \"-down::before\"), {\n    transform: \"rotate(180deg)\"\n  })), _defineProperty(_Object$assign, \"\\n        &-hidden,\\n        &-menu-hidden,\\n        &-menu-submenu-hidden\\n      \", {\n    display: 'none'\n  }), _defineProperty(_Object$assign, \"\\n        &-show-arrow&-placement-topLeft,\\n        &-show-arrow&-placement-top,\\n        &-show-arrow&-placement-topRight\\n      \", {\n    paddingBottom: dropdownArrowDistance\n  }), _defineProperty(_Object$assign, \"\\n        &-show-arrow&-placement-bottomLeft,\\n        &-show-arrow&-placement-bottom,\\n        &-show-arrow&-placement-bottomRight\\n      \", {\n    paddingTop: dropdownArrowDistance\n  }), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-arrow\"), Object.assign({\n    position: 'absolute',\n    zIndex: 1,\n    display: 'block'\n  }, roundedArrow(sizePopupArrow, token.borderRadiusXS, token.borderRadiusOuter, colorBgElevated, boxShadowPopoverArrow))), _defineProperty(_Object$assign, \"\\n        &-placement-top > \".concat(componentCls, \"-arrow,\\n        &-placement-topLeft > \").concat(componentCls, \"-arrow,\\n        &-placement-topRight > \").concat(componentCls, \"-arrow\\n      \"), {\n    bottom: dropdownArrowDistance,\n    transform: 'translateY(100%) rotate(180deg)'\n  }), _defineProperty(_Object$assign, \"&-placement-top > \".concat(componentCls, \"-arrow\"), {\n    left: {\n      _skip_check_: true,\n      value: '50%'\n    },\n    transform: 'translateX(-50%) translateY(100%) rotate(180deg)'\n  }), _defineProperty(_Object$assign, \"&-placement-topLeft > \".concat(componentCls, \"-arrow\"), {\n    left: {\n      _skip_check_: true,\n      value: dropdownArrowOffset\n    }\n  }), _defineProperty(_Object$assign, \"&-placement-topRight > \".concat(componentCls, \"-arrow\"), {\n    right: {\n      _skip_check_: true,\n      value: dropdownArrowOffset\n    }\n  }), _defineProperty(_Object$assign, \"\\n          &-placement-bottom > \".concat(componentCls, \"-arrow,\\n          &-placement-bottomLeft > \").concat(componentCls, \"-arrow,\\n          &-placement-bottomRight > \").concat(componentCls, \"-arrow\\n        \"), {\n    top: dropdownArrowDistance,\n    transform: \"translateY(-100%)\"\n  }), _defineProperty(_Object$assign, \"&-placement-bottom > \".concat(componentCls, \"-arrow\"), {\n    left: {\n      _skip_check_: true,\n      value: '50%'\n    },\n    transform: \"translateY(-100%) translateX(-50%)\"\n  }), _defineProperty(_Object$assign, \"&-placement-bottomLeft > \".concat(componentCls, \"-arrow\"), {\n    left: {\n      _skip_check_: true,\n      value: dropdownArrowOffset\n    }\n  }), _defineProperty(_Object$assign, \"&-placement-bottomRight > \".concat(componentCls, \"-arrow\"), {\n    right: {\n      _skip_check_: true,\n      value: dropdownArrowOffset\n    }\n  }), _defineProperty(_Object$assign, \"&\".concat(antCls, \"-slide-down-enter\").concat(antCls, \"-slide-down-enter-active&-placement-bottomLeft,\\n          &\").concat(antCls, \"-slide-down-appear\").concat(antCls, \"-slide-down-appear-active&-placement-bottomLeft\\n          &\").concat(antCls, \"-slide-down-enter\").concat(antCls, \"-slide-down-enter-active&-placement-bottom,\\n          &\").concat(antCls, \"-slide-down-appear\").concat(antCls, \"-slide-down-appear-active&-placement-bottom,\\n          &\").concat(antCls, \"-slide-down-enter\").concat(antCls, \"-slide-down-enter-active&-placement-bottomRight,\\n          &\").concat(antCls, \"-slide-down-appear\").concat(antCls, \"-slide-down-appear-active&-placement-bottomRight\"), {\n    animationName: slideUpIn\n  }), _defineProperty(_Object$assign, \"&\".concat(antCls, \"-slide-up-enter\").concat(antCls, \"-slide-up-enter-active&-placement-topLeft,\\n          &\").concat(antCls, \"-slide-up-appear\").concat(antCls, \"-slide-up-appear-active&-placement-topLeft,\\n          &\").concat(antCls, \"-slide-up-enter\").concat(antCls, \"-slide-up-enter-active&-placement-top,\\n          &\").concat(antCls, \"-slide-up-appear\").concat(antCls, \"-slide-up-appear-active&-placement-top,\\n          &\").concat(antCls, \"-slide-up-enter\").concat(antCls, \"-slide-up-enter-active&-placement-topRight,\\n          &\").concat(antCls, \"-slide-up-appear\").concat(antCls, \"-slide-up-appear-active&-placement-topRight\"), {\n    animationName: slideDownIn\n  }), _defineProperty(_Object$assign, \"&\".concat(antCls, \"-slide-down-leave\").concat(antCls, \"-slide-down-leave-active&-placement-bottomLeft,\\n          &\").concat(antCls, \"-slide-down-leave\").concat(antCls, \"-slide-down-leave-active&-placement-bottom,\\n          &\").concat(antCls, \"-slide-down-leave\").concat(antCls, \"-slide-down-leave-active&-placement-bottomRight\"), {\n    animationName: slideUpOut\n  }), _defineProperty(_Object$assign, \"&\".concat(antCls, \"-slide-up-leave\").concat(antCls, \"-slide-up-leave-active&-placement-topLeft,\\n          &\").concat(antCls, \"-slide-up-leave\").concat(antCls, \"-slide-up-leave-active&-placement-top,\\n          &\").concat(antCls, \"-slide-up-leave\").concat(antCls, \"-slide-up-leave-active&-placement-topRight\"), {\n    animationName: slideDownOut\n  }), _Object$assign))), (_ref3 = {}, _defineProperty(_ref3, \"\".concat(componentCls, \" \").concat(menuCls), {\n    position: 'relative',\n    margin: 0\n  }), _defineProperty(_ref3, \"\".concat(menuCls, \"-submenu-popup\"), {\n    position: 'absolute',\n    zIndex: zIndexPopup,\n    background: 'transparent',\n    boxShadow: 'none',\n    transformOrigin: '0 0',\n    'ul,li': {\n      listStyle: 'none'\n    },\n    ul: {\n      marginInline: '0.3em'\n    }\n  }), _defineProperty(_ref3, \"\".concat(componentCls, \", \").concat(componentCls, \"-menu-submenu\"), _defineProperty({}, menuCls, Object.assign(Object.assign({\n    padding: dropdownEdgeChildPadding,\n    listStyleType: 'none',\n    backgroundColor: colorBgElevated,\n    backgroundClip: 'padding-box',\n    borderRadius: token.borderRadiusLG,\n    outline: 'none',\n    boxShadow: token.boxShadowSecondary\n  }, genFocusStyle(token)), (_Object$assign4 = {}, _defineProperty(_Object$assign4, \"\".concat(menuCls, \"-item-group-title\"), {\n    padding: \"\".concat(dropdownPaddingVertical, \"px \").concat(controlPaddingHorizontal, \"px\"),\n    color: token.colorTextDescription,\n    transition: \"all \".concat(motionDurationMid)\n  }), _defineProperty(_Object$assign4, \"\".concat(menuCls, \"-item\"), {\n    position: 'relative',\n    display: 'flex',\n    alignItems: 'center',\n    borderRadius: token.borderRadiusSM\n  }), _defineProperty(_Object$assign4, \"\".concat(menuCls, \"-item-icon\"), {\n    minWidth: fontSize,\n    marginInlineEnd: token.marginXS,\n    fontSize: token.fontSizeSM\n  }), _defineProperty(_Object$assign4, \"\".concat(menuCls, \"-title-content\"), {\n    flex: 'auto',\n    '> a': {\n      color: 'inherit',\n      transition: \"all \".concat(motionDurationMid),\n      '&:hover': {\n        color: 'inherit'\n      },\n      '&::after': {\n        position: 'absolute',\n        inset: 0,\n        content: '\"\"'\n      }\n    }\n  }), _defineProperty(_Object$assign4, \"\".concat(menuCls, \"-item, \").concat(menuCls, \"-submenu-title\"), Object.assign(Object.assign(_defineProperty({\n    clear: 'both',\n    margin: 0,\n    padding: \"\".concat(dropdownPaddingVertical, \"px \").concat(controlPaddingHorizontal, \"px\"),\n    color: token.colorText,\n    fontWeight: 'normal',\n    fontSize: fontSize,\n    lineHeight: token.lineHeight,\n    cursor: 'pointer',\n    transition: \"all \".concat(motionDurationMid)\n  }, \"&:hover, &-active\", {\n    backgroundColor: token.controlItemBgHover\n  }), genFocusStyle(token)), _defineProperty({\n    '&-selected': {\n      color: token.colorPrimary,\n      backgroundColor: token.controlItemBgActive,\n      '&:hover, &-active': {\n        backgroundColor: token.controlItemBgActiveHover\n      }\n    },\n    '&-disabled': {\n      color: colorTextDisabled,\n      cursor: 'not-allowed',\n      '&:hover': {\n        color: colorTextDisabled,\n        backgroundColor: colorBgElevated,\n        cursor: 'not-allowed'\n      },\n      a: {\n        pointerEvents: 'none'\n      }\n    },\n    '&-divider': {\n      height: 1,\n      margin: \"\".concat(token.marginXXS, \"px 0\"),\n      overflow: 'hidden',\n      lineHeight: 0,\n      backgroundColor: token.colorSplit\n    }\n  }, \"\".concat(componentCls, \"-menu-submenu-expand-icon\"), _defineProperty({\n    position: 'absolute',\n    insetInlineEnd: token.paddingXS\n  }, \"\".concat(componentCls, \"-menu-submenu-arrow-icon\"), {\n    marginInlineEnd: '0 !important',\n    color: token.colorTextDescription,\n    fontSize: fontSizeIcon,\n    fontStyle: 'normal'\n  })))), _defineProperty(_Object$assign4, \"\".concat(menuCls, \"-item-group-list\"), {\n    margin: \"0 \".concat(token.marginXS, \"px\"),\n    padding: 0,\n    listStyle: 'none'\n  }), _defineProperty(_Object$assign4, \"\".concat(menuCls, \"-submenu-title\"), {\n    paddingInlineEnd: controlPaddingHorizontal + token.fontSizeSM\n  }), _defineProperty(_Object$assign4, \"\".concat(menuCls, \"-submenu-vertical\"), {\n    position: 'relative'\n  }), _defineProperty(_Object$assign4, \"\".concat(menuCls, \"-submenu\").concat(menuCls, \"-submenu-disabled \").concat(componentCls, \"-menu-submenu-title\"), _defineProperty({}, \"&, \".concat(componentCls, \"-menu-submenu-arrow-icon\"), {\n    color: colorTextDisabled,\n    backgroundColor: colorBgElevated,\n    cursor: 'not-allowed'\n  })), _defineProperty(_Object$assign4, \"\".concat(menuCls, \"-submenu-selected \").concat(componentCls, \"-menu-submenu-title\"), {\n    color: token.colorPrimary\n  }), _Object$assign4)))), _ref3),\n  // Follow code may reuse in other components\n  [initSlideMotion(token, 'slide-up'), initSlideMotion(token, 'slide-down'), initMoveMotion(token, 'move-up'), initMoveMotion(token, 'move-down'), initZoomMotion(token, 'zoom-big')]];\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Dropdown', function (token, _ref) {\n  var rootPrefixCls = _ref.rootPrefixCls;\n  var marginXXS = token.marginXXS,\n    sizePopupArrow = token.sizePopupArrow,\n    controlHeight = token.controlHeight,\n    fontSize = token.fontSize,\n    lineHeight = token.lineHeight,\n    paddingXXS = token.paddingXXS,\n    componentCls = token.componentCls,\n    borderRadiusOuter = token.borderRadiusOuter,\n    borderRadiusLG = token.borderRadiusLG;\n  var dropdownPaddingVertical = (controlHeight - fontSize * lineHeight) / 2;\n  var _getArrowOffset = getArrowOffset({\n      sizePopupArrow: sizePopupArrow,\n      contentRadius: borderRadiusLG,\n      borderRadiusOuter: borderRadiusOuter\n    }),\n    dropdownArrowOffset = _getArrowOffset.dropdownArrowOffset;\n  var dropdownToken = mergeToken(token, {\n    menuCls: \"\".concat(componentCls, \"-menu\"),\n    rootPrefixCls: rootPrefixCls,\n    dropdownArrowDistance: sizePopupArrow / 2 + marginXXS,\n    dropdownArrowOffset: dropdownArrowOffset,\n    dropdownPaddingVertical: dropdownPaddingVertical,\n    dropdownEdgeChildPadding: paddingXXS\n  });\n  return [genBaseStyle(dropdownToken), genButtonStyle(dropdownToken), genStatusStyle(dropdownToken)];\n}, function (token) {\n  return {\n    zIndexPopup: token.zIndexPopupBase + 50\n  };\n});","map":{"version":3,"names":["getArrowOffset","initMoveMotion","initSlideMotion","initZoomMotion","slideDownIn","slideDownOut","slideUpIn","slideUpOut","genComponentStyleHook","mergeToken","genButtonStyle","genStatusStyle","genFocusStyle","resetComponent","roundedArrow","genBaseStyle","token","componentCls","menuCls","zIndexPopup","dropdownArrowDistance","dropdownArrowOffset","sizePopupArrow","antCls","iconCls","motionDurationMid","dropdownPaddingVertical","fontSize","dropdownEdgeChildPadding","colorTextDisabled","fontSizeIcon","controlPaddingHorizontal","colorBgElevated","boxShadowPopoverArrow","Object","assign","position","top","left","_skip_check_","value","zIndex","display","insetBlock","opacity","content","transition","transform","paddingBottom","paddingTop","borderRadiusXS","borderRadiusOuter","bottom","right","animationName","margin","background","boxShadow","transformOrigin","listStyle","ul","marginInline","padding","listStyleType","backgroundColor","backgroundClip","borderRadius","borderRadiusLG","outline","boxShadowSecondary","color","colorTextDescription","alignItems","borderRadiusSM","minWidth","marginInlineEnd","marginXS","fontSizeSM","flex","inset","clear","colorText","fontWeight","lineHeight","cursor","controlItemBgHover","colorPrimary","controlItemBgActive","controlItemBgActiveHover","a","pointerEvents","height","marginXXS","overflow","colorSplit","insetInlineEnd","paddingXS","fontStyle","paddingInlineEnd","_ref","rootPrefixCls","controlHeight","paddingXXS","contentRadius","dropdownToken","zIndexPopupBase"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/dropdown/style/index.js"],"sourcesContent":["import { getArrowOffset } from '../../style/placementArrow';\nimport { initMoveMotion, initSlideMotion, initZoomMotion, slideDownIn, slideDownOut, slideUpIn, slideUpOut } from '../../style/motion';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genButtonStyle from './button';\nimport genStatusStyle from './status';\nimport { genFocusStyle, resetComponent, roundedArrow } from '../../style';\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    menuCls,\n    zIndexPopup,\n    dropdownArrowDistance,\n    dropdownArrowOffset,\n    sizePopupArrow,\n    antCls,\n    iconCls,\n    motionDurationMid,\n    dropdownPaddingVertical,\n    fontSize,\n    dropdownEdgeChildPadding,\n    colorTextDisabled,\n    fontSizeIcon,\n    controlPaddingHorizontal,\n    colorBgElevated,\n    boxShadowPopoverArrow\n  } = token;\n  return [{\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'absolute',\n      top: -9999,\n      left: {\n        _skip_check_: true,\n        value: -9999\n      },\n      zIndex: zIndexPopup,\n      display: 'block',\n      // A placeholder out of dropdown visible range to avoid close when user moving\n      '&::before': {\n        position: 'absolute',\n        insetBlock: -dropdownArrowDistance + sizePopupArrow / 2,\n        // insetInlineStart: -7, // FIXME: Seems not work for hidden element\n        zIndex: -9999,\n        opacity: 0.0001,\n        content: '\"\"'\n      },\n      [`${componentCls}-wrap`]: {\n        position: 'relative',\n        [`${antCls}-btn > ${iconCls}-down`]: {\n          fontSize: fontSizeIcon\n        },\n        [`${iconCls}-down::before`]: {\n          transition: `transform ${motionDurationMid}`\n        }\n      },\n      [`${componentCls}-wrap-open`]: {\n        [`${iconCls}-down::before`]: {\n          transform: `rotate(180deg)`\n        }\n      },\n      [`\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      `]: {\n        display: 'none'\n      },\n      // =============================================================\n      // ==                          Arrow                          ==\n      // =============================================================\n      // Offset the popover to account for the dropdown arrow\n      [`\n        &-show-arrow&-placement-topLeft,\n        &-show-arrow&-placement-top,\n        &-show-arrow&-placement-topRight\n      `]: {\n        paddingBottom: dropdownArrowDistance\n      },\n      [`\n        &-show-arrow&-placement-bottomLeft,\n        &-show-arrow&-placement-bottom,\n        &-show-arrow&-placement-bottomRight\n      `]: {\n        paddingTop: dropdownArrowDistance\n      },\n      // Note: .popover-arrow is outer, .popover-arrow:after is inner\n      [`${componentCls}-arrow`]: Object.assign({\n        position: 'absolute',\n        zIndex: 1,\n        display: 'block'\n      }, roundedArrow(sizePopupArrow, token.borderRadiusXS, token.borderRadiusOuter, colorBgElevated, boxShadowPopoverArrow)),\n      [`\n        &-placement-top > ${componentCls}-arrow,\n        &-placement-topLeft > ${componentCls}-arrow,\n        &-placement-topRight > ${componentCls}-arrow\n      `]: {\n        bottom: dropdownArrowDistance,\n        transform: 'translateY(100%) rotate(180deg)'\n      },\n      [`&-placement-top > ${componentCls}-arrow`]: {\n        left: {\n          _skip_check_: true,\n          value: '50%'\n        },\n        transform: 'translateX(-50%) translateY(100%) rotate(180deg)'\n      },\n      [`&-placement-topLeft > ${componentCls}-arrow`]: {\n        left: {\n          _skip_check_: true,\n          value: dropdownArrowOffset\n        }\n      },\n      [`&-placement-topRight > ${componentCls}-arrow`]: {\n        right: {\n          _skip_check_: true,\n          value: dropdownArrowOffset\n        }\n      },\n      [`\n          &-placement-bottom > ${componentCls}-arrow,\n          &-placement-bottomLeft > ${componentCls}-arrow,\n          &-placement-bottomRight > ${componentCls}-arrow\n        `]: {\n        top: dropdownArrowDistance,\n        transform: `translateY(-100%)`\n      },\n      [`&-placement-bottom > ${componentCls}-arrow`]: {\n        left: {\n          _skip_check_: true,\n          value: '50%'\n        },\n        transform: `translateY(-100%) translateX(-50%)`\n      },\n      [`&-placement-bottomLeft > ${componentCls}-arrow`]: {\n        left: {\n          _skip_check_: true,\n          value: dropdownArrowOffset\n        }\n      },\n      [`&-placement-bottomRight > ${componentCls}-arrow`]: {\n        right: {\n          _skip_check_: true,\n          value: dropdownArrowOffset\n        }\n      },\n      // =============================================================\n      // ==                         Motion                          ==\n      // =============================================================\n      // When position is not enough for dropdown, the placement will revert.\n      // We will handle this with revert motion name.\n      [`&${antCls}-slide-down-enter${antCls}-slide-down-enter-active&-placement-bottomLeft,\n          &${antCls}-slide-down-appear${antCls}-slide-down-appear-active&-placement-bottomLeft\n          &${antCls}-slide-down-enter${antCls}-slide-down-enter-active&-placement-bottom,\n          &${antCls}-slide-down-appear${antCls}-slide-down-appear-active&-placement-bottom,\n          &${antCls}-slide-down-enter${antCls}-slide-down-enter-active&-placement-bottomRight,\n          &${antCls}-slide-down-appear${antCls}-slide-down-appear-active&-placement-bottomRight`]: {\n        animationName: slideUpIn\n      },\n      [`&${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-topLeft,\n          &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-topLeft,\n          &${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-top,\n          &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-top,\n          &${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-topRight,\n          &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-topRight`]: {\n        animationName: slideDownIn\n      },\n      [`&${antCls}-slide-down-leave${antCls}-slide-down-leave-active&-placement-bottomLeft,\n          &${antCls}-slide-down-leave${antCls}-slide-down-leave-active&-placement-bottom,\n          &${antCls}-slide-down-leave${antCls}-slide-down-leave-active&-placement-bottomRight`]: {\n        animationName: slideUpOut\n      },\n      [`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-topLeft,\n          &${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-top,\n          &${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-topRight`]: {\n        animationName: slideDownOut\n      }\n    })\n  }, {\n    // =============================================================\n    // ==                          Menu                           ==\n    // =============================================================\n    [`${componentCls} ${menuCls}`]: {\n      position: 'relative',\n      margin: 0\n    },\n    [`${menuCls}-submenu-popup`]: {\n      position: 'absolute',\n      zIndex: zIndexPopup,\n      background: 'transparent',\n      boxShadow: 'none',\n      transformOrigin: '0 0',\n      'ul,li': {\n        listStyle: 'none'\n      },\n      ul: {\n        marginInline: '0.3em'\n      }\n    },\n    [`${componentCls}, ${componentCls}-menu-submenu`]: {\n      [menuCls]: Object.assign(Object.assign({\n        padding: dropdownEdgeChildPadding,\n        listStyleType: 'none',\n        backgroundColor: colorBgElevated,\n        backgroundClip: 'padding-box',\n        borderRadius: token.borderRadiusLG,\n        outline: 'none',\n        boxShadow: token.boxShadowSecondary\n      }, genFocusStyle(token)), {\n        [`${menuCls}-item-group-title`]: {\n          padding: `${dropdownPaddingVertical}px ${controlPaddingHorizontal}px`,\n          color: token.colorTextDescription,\n          transition: `all ${motionDurationMid}`\n        },\n        // ======================= Item Content =======================\n        [`${menuCls}-item`]: {\n          position: 'relative',\n          display: 'flex',\n          alignItems: 'center',\n          borderRadius: token.borderRadiusSM\n        },\n        [`${menuCls}-item-icon`]: {\n          minWidth: fontSize,\n          marginInlineEnd: token.marginXS,\n          fontSize: token.fontSizeSM\n        },\n        [`${menuCls}-title-content`]: {\n          flex: 'auto',\n          '> a': {\n            color: 'inherit',\n            transition: `all ${motionDurationMid}`,\n            '&:hover': {\n              color: 'inherit'\n            },\n            '&::after': {\n              position: 'absolute',\n              inset: 0,\n              content: '\"\"'\n            }\n          }\n        },\n        // =========================== Item ===========================\n        [`${menuCls}-item, ${menuCls}-submenu-title`]: Object.assign(Object.assign({\n          clear: 'both',\n          margin: 0,\n          padding: `${dropdownPaddingVertical}px ${controlPaddingHorizontal}px`,\n          color: token.colorText,\n          fontWeight: 'normal',\n          fontSize,\n          lineHeight: token.lineHeight,\n          cursor: 'pointer',\n          transition: `all ${motionDurationMid}`,\n          [`&:hover, &-active`]: {\n            backgroundColor: token.controlItemBgHover\n          }\n        }, genFocusStyle(token)), {\n          '&-selected': {\n            color: token.colorPrimary,\n            backgroundColor: token.controlItemBgActive,\n            '&:hover, &-active': {\n              backgroundColor: token.controlItemBgActiveHover\n            }\n          },\n          '&-disabled': {\n            color: colorTextDisabled,\n            cursor: 'not-allowed',\n            '&:hover': {\n              color: colorTextDisabled,\n              backgroundColor: colorBgElevated,\n              cursor: 'not-allowed'\n            },\n            a: {\n              pointerEvents: 'none'\n            }\n          },\n          '&-divider': {\n            height: 1,\n            margin: `${token.marginXXS}px 0`,\n            overflow: 'hidden',\n            lineHeight: 0,\n            backgroundColor: token.colorSplit\n          },\n          [`${componentCls}-menu-submenu-expand-icon`]: {\n            position: 'absolute',\n            insetInlineEnd: token.paddingXS,\n            [`${componentCls}-menu-submenu-arrow-icon`]: {\n              marginInlineEnd: '0 !important',\n              color: token.colorTextDescription,\n              fontSize: fontSizeIcon,\n              fontStyle: 'normal'\n            }\n          }\n        }),\n        [`${menuCls}-item-group-list`]: {\n          margin: `0 ${token.marginXS}px`,\n          padding: 0,\n          listStyle: 'none'\n        },\n        [`${menuCls}-submenu-title`]: {\n          paddingInlineEnd: controlPaddingHorizontal + token.fontSizeSM\n        },\n        [`${menuCls}-submenu-vertical`]: {\n          position: 'relative'\n        },\n        [`${menuCls}-submenu${menuCls}-submenu-disabled ${componentCls}-menu-submenu-title`]: {\n          [`&, ${componentCls}-menu-submenu-arrow-icon`]: {\n            color: colorTextDisabled,\n            backgroundColor: colorBgElevated,\n            cursor: 'not-allowed'\n          }\n        },\n        // https://github.com/ant-design/ant-design/issues/19264\n        [`${menuCls}-submenu-selected ${componentCls}-menu-submenu-title`]: {\n          color: token.colorPrimary\n        }\n      })\n    }\n  },\n  // Follow code may reuse in other components\n  [initSlideMotion(token, 'slide-up'), initSlideMotion(token, 'slide-down'), initMoveMotion(token, 'move-up'), initMoveMotion(token, 'move-down'), initZoomMotion(token, 'zoom-big')]];\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Dropdown', (token, _ref) => {\n  let {\n    rootPrefixCls\n  } = _ref;\n  const {\n    marginXXS,\n    sizePopupArrow,\n    controlHeight,\n    fontSize,\n    lineHeight,\n    paddingXXS,\n    componentCls,\n    borderRadiusOuter,\n    borderRadiusLG\n  } = token;\n  const dropdownPaddingVertical = (controlHeight - fontSize * lineHeight) / 2;\n  const {\n    dropdownArrowOffset\n  } = getArrowOffset({\n    sizePopupArrow,\n    contentRadius: borderRadiusLG,\n    borderRadiusOuter\n  });\n  const dropdownToken = mergeToken(token, {\n    menuCls: `${componentCls}-menu`,\n    rootPrefixCls,\n    dropdownArrowDistance: sizePopupArrow / 2 + marginXXS,\n    dropdownArrowOffset,\n    dropdownPaddingVertical,\n    dropdownEdgeChildPadding: paddingXXS\n  });\n  return [genBaseStyle(dropdownToken), genButtonStyle(dropdownToken), genStatusStyle(dropdownToken)];\n}, token => ({\n  zIndexPopup: token.zIndexPopupBase + 50\n}));"],"mappings":";AAAA,SAASA,cAAc,QAAQ,4BAA4B;AAC3D,SAASC,cAAc,EAAEC,eAAe,EAAEC,cAAc,EAAEC,WAAW,EAAEC,YAAY,EAAEC,SAAS,EAAEC,UAAU,QAAQ,oBAAoB;AACtI,SAASC,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,OAAOC,cAAc,MAAM,UAAU;AACrC,OAAOC,cAAc,MAAM,UAAU;AACrC,SAASC,aAAa,EAAEC,cAAc,EAAEC,YAAY,QAAQ,aAAa;AACzE;AACA,IAAMC,YAAY,GAAG,SAAfA,YAAY,CAAGC,KAAK,EAAI;EAAA;EAC5B,IACEC,YAAY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